<script type="text/javascript">
	jQuery(function($) { $("ul.jt-tabs").tabs("div.jt-panes > div"); });
</script>

<form action="" method="post" enctype="multipart/form-data">

<? if (sizeof($DIAGS)) { ?>
	<div class="diags"><p><?=implode("</p><p>", $DIAGS)?></p></div>
<? } ?>


<ul class="jt-tabs"><?

	foreach($DATA['langs'] as $lang) {
		?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
	} 
	
?></ul>

<div class="jt-panes">

	<? $t = true; 
		foreach($DATA['langs'] as $lang) { $l = $lang['text'];

		?><div class="jt-pane" style="<?=$t ? "display:block" : ""?>">

		<p><label>Название<br />
			<input type="text" name="value[<?=$l?>]" maxlength="200" class="xwide" value="<?=dat('object', 'data', $l, 'value')?>" />
		</label></p>

		<div><label>Краткое описание<br />
			<textarea name="text[<?=$l?>]" cols="80" rows="25"><?=dat('object', 'data', $l, 'text')?></textarea>
		</label></div>

	</fieldset>

		</div><? 
	
	$t = false; } ?>

</div>



<div>
	<fieldset>
		<legend> = </legend>

		<div><label>Картинка (размер: <?=talkImageSize($s['gal_w'], $s['gal_h'])?>)<br />
			<input type="file" name="image" class="wide" /></label>
			<? if ($im = dat('object','image')) { ?>
				<img src="<?=$im['fn']?>" width="<?=$im['x']?>" height="<?=$im['y']?>" style="display:block" />
			<? } ?>
		</div>
		
	</fieldset>
</div>


	
	<p><input type="submit" name="editor_save" value="Сохранить" /></p>

</form>
